[deps]
curl

[deps.host]
perl

[mirrors]
http://mirror.anl.gov/pub/software/scm/git/git-1.8.4.tar.xz
https://www.kernel.org/pub/software/scm/git/git-1.8.4.tar.xz
http://www.kernel.org/pub/software/scm/git/git-1.8.4.tar.xz
ftp://www.kernel.org/pub/software/scm/git/git-1.8.4.tar.xz

[main]
filesize=3279768
sha512=f62fcd8f20c0e8dc6909de8ccc950c39703e4c9b36acba643ab22051a1290fbe0eb606c417718ec9978c547a0515c389fbd270a24fbf245afc56a1b837840976

[build]

make CURL_LIBCURL="$butch_root_dir/lib/libcurl.a $butch_root_dir/lib/libssl.a $butch_root_dir/lib/libcrypto.a" \
  CC="$CC" HOSTCC="$HOSTCC" \
  prefix="$butch_prefix" gitexecdir="$butch_prefix"/lib/git-core \
  NO_TCLTK=1 NO_PYTHON=1 NO_EXPAT=1 NO_GETTEXT=1 \
  CFLAGS="$optcflags" LDFLAGS="$optldflags -static" \
  DESTDIR="$butch_install_dir" -j$MAKE_THREADS V=1 all install  || exit 1

dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/bin
cp gitk-git/gitk "$dest"/bin/ || exit 1
ln -sf git "$dest"/bin/git-receive-pack
ln -sf git "$dest"/bin/git-upload-archive
mv "$dest"/share/perl5 "$dest"/lib/
